import { getShopsList,updateAddress } from "@/api/agent";

export default {
    state: {},
    getters: {},
    mutations: {},
    actions: {
        getShopsList({}, payload) {
            return new Promise((resolve, reject) => {
                getShopsList(payload)
                    .then(res => {
                        resolve(res);
                    })
                    .catch(err => {
                        reject(err);
                    });
            });
        },
        updateAddress({}, payload) {
            return new Promise((resolve, reject) => {
                updateAddress(payload)
                    .then(res => {
                        resolve(res);
                    })
                    .catch(err => {
                        reject(err);
                    });
            });
        }
    },
    namespaced: true
};
